encode{
  final ChannelBuffer buffer=(ChannelBuffer)msg;
  io.netty.buffer.ChannelBuffer.readerIndex
  return buffer;
}
setHandshaked{ }
